package com.cloud.poetry.core.constant;

import org.springframework.util.Base64Utils;

/**
 * @author mengxj
 */
public class PoetryConstant {

    public static final String REQUEST_TYPE_KEY = "Request-Type";

    public static final String REQUEST_TYPE_VALUE_GATEWAY = new String(Base64Utils.encode("gateway".getBytes()));

    public static final String REQUEST_TYPE_VALUE_FEIGN = "feign-client";

    public static final String FEIGN_HEADER = REQUEST_TYPE_KEY + "=" + REQUEST_TYPE_VALUE_FEIGN;

    public static final String HANDLE_RESPONSE_KEY = "handleResponseKey";

    public static final String HANDLE_RESPONSE_VALUE = "handleResponseValue";

    public static final String CUR_USER = "curUser";
}
